package me.jessyan.mvparms.demo.mvp.ui.xunfeisdk;

import android.app.Application;
import android.support.annotation.Keep;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;



/**初始化类
 * @Author 35574
 * @Date 2020/7/7
 * @Description
 */
@Keep
public class SpeechLib {
    /**
     *
     * @param application
     * @param appId 在讯飞平台申请的APPID，申请地址：https://www.xfyun.cn/services/voicedictation
     */
    public static void init(Application application,String appId){
        // 请勿在“=”与appid之间添加任何空字符或者转义符
        SpeechUtility.createUtility(application, SpeechConstant.APPID +"="+appId);

    }

}